package com.kk.common;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;
import java.math.BigInteger;
import java.time.LocalDateTime;

/**
 * @author kl
 * @version 1.0
 * @description: TODO
 * @date 2025/10/13 下午4:25
 */
@Data
public class BaseEntity implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;


    @TableId(value = "id",type = IdType.AUTO)
    private BigInteger id;

    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;

    @TableField(fill = FieldFill.INSERT)
    private BigInteger createBy;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    private BigInteger updateBy;
    /**
     * 删除标识:0-未删除,1-已删除
     */
    @TableLogic
    private Integer isDeleted;
}
